/** Icons are imported separatly to reduce build time */
import UserIcon from '@heroicons/react/24/outline/UserIcon'
import Cog6ToothIcon from '@heroicons/react/24/outline/Cog6ToothIcon'
import UserGroupIcon from '@heroicons/react/24/outline/UserGroupIcon'
import UserPlusIcon from '@heroicons/react/24/outline/UserPlusIcon'
import BuildingLibraryIcon from '@heroicons/react/24/solid/BuildingLibraryIcon'
import BuildingStorefrontIcon from '@heroicons/react/24/solid/BuildingStorefrontIcon'
import ListBulletIcon from '@heroicons/react/24/outline/ListBulletIcon'
import UsersIcon from '@heroicons/react/24/outline/UsersIcon'
import ChartPieIcon from '@heroicons/react/24/outline/ChartPieIcon'
import IdentificationIcon from '@heroicons/react/24/outline/IdentificationIcon'

const iconClasses = `h-6 w-6`
const submenuIconClasses = `h-5 w-5`

const routes = [

  // {
  //   path: '/app/dashboard',
  //   icon: <ChartPieIcon  className={`${iconClasses} inline` }/>, // icon component
  //   name: '仪表盘',
  //   roleType: ['admin','manager' ,'user']
  // },
  {
    path: '', // url
    icon: <UserGroupIcon  className={`${iconClasses} inline` }/>, // icon component
    name: '考生志愿服务', // name that appear in Sidebar
    roleType: ['admin','manager' ,'user'],
    submenu : [
      {
        path: '/app/mineUser',
        icon: <ListBulletIcon className={submenuIconClasses}/>,
        name: '我的考生',
      },
      // {
      //   path: '/login',
      //   icon: <ListBulletIcon className={submenuIconClasses}/>,
      //   name: '志愿单管理',
      // },
    ]
  },
  {
    path: '', // url
    icon: <BuildingLibraryIcon  className={`${iconClasses} inline` }/>, // icon component
    name: '院校信息', // name that appear in Sidebar
    roleType: ['admin','manager' ,'user'],
    submenu : [
      {
        path: '/app/universityList',
        icon: <ListBulletIcon className={submenuIconClasses}/>,
        name: '高校招生信息',
      },
    ]
  },
  
  {
    path: '', // url
    icon: <UserPlusIcon className={`${iconClasses} inline` }/>, // icon component
    name: '考生招入', // name that appear in Sidebar
    roleType: ['admin','manager' ],
    submenu : [
      {
        path: '/app/studentDeployList',
        icon: <ListBulletIcon className={submenuIconClasses}/>,
        name: '招入考生列表',
      }
    ]
  },
  {
    path: '', // url
    icon: <UsersIcon className={`${iconClasses} inline` }/>, // icon component icon component
    name: '机构管理', // name that appear in Sidebar
    roleType: ['admin','manager'],
    submenu : [
      {
        path: '/app/companyAccount',
        icon: <ListBulletIcon className={submenuIconClasses}/>,
        name: '规划师列表',
      },
      {
        path: '/app/companyCard',
        icon: <IdentificationIcon className={submenuIconClasses}/>,
        name: '卡管理',
      }
    ]
  },

  {
    path: '', //no url needed as this has submenu
    icon: <BuildingStorefrontIcon className={`${iconClasses} inline` }/>, // icon component
    name: '机构管理', // name that appear in Sidebar
    roleType: ['admin'],
    submenu : [
      {
        path: '/app/departments',
        icon: <ListBulletIcon className={submenuIconClasses}/>,
        name: '机构列表',
      },
      {
        path: '/app/cardHistory',
        icon: <IdentificationIcon className={submenuIconClasses}/>,
        name: '发卡管理',
      }
    ]
  },
  {
    path: '', //no url needed as this has submenu
    icon: <Cog6ToothIcon className={`${iconClasses} inline` }/>, // icon component
    name: '个人信息', // name that appear in Sidebar
    roleType: ['admin','manager' ,'user'],
    submenu : [
      {
        path: '/app/settings-profile', //url
        icon: <UserIcon className={submenuIconClasses}/>, // icon component
        name: '个人信息', // name that appear in Sidebar
      }
    ]
  }
]

export default routes


